﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Zhp.SqlSugar.Trigger.Core;

namespace Zhp.SqlSugar.UnitOfWork
{
    public class UnitOfWork<T> : SugarUnitOfWork<T>, IUnitOfWork<T> where T : SugarUnitOfWork, new()
    {
        public ITriggerExecute trigger { get; set; }
        public UnitOfWork(ISqlSugarClient db, ITriggerExecute trigger) : base(db)
        {
            Db = db;
            this.trigger = trigger;
        }
    }
}
